﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SmartHotel.BLL;
using SmartHotel.Model;

namespace SmartHotel.WebAPI.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class NlogController : ControllerBase
    {
        public NlogController(NlogBLL nlogBLL)
        {
            NlogBLL = nlogBLL;
        }

        public NlogBLL NlogBLL { get; }
        [HttpGet]
        public MyPage<NlogModel> GetNlogModels(int index, int size, string? message, DateTime? begin, DateTime? end)
        {
             int count = 0;
            return NlogBLL.GetNlogModels(index, size, out count, message, begin, end);
        }
    }
}
